package com.crazy.model.major.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 标签-文章关联表
 * </p>
 *
 * @author ${author}
 * @since 2020-12-24
 */
@TableName("T_LABEL_ARTICLE_RELATION")
public class TLabelArticleRelation extends Model<TLabelArticleRelation> {

    /**
    * 所有字段名
    */
    public static class Columns {
        /**
        * 
        */
        public static final String id = "ID";
        /**
        * 标签编号
        */
        public static final String labelId = "LABEL_ID";
        /**
        * 文章编号
        */
        public static final String articleId = "ARTICLE_ID";
    }

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 标签编号
     */
    @TableField("LABEL_ID")
    private Long labelId;

    /**
     * 文章编号
     */
    @TableField("ARTICLE_ID")
    private Long articleId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getLabelId() {
        return labelId;
    }

    public void setLabelId(Long labelId) {
        this.labelId = labelId;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TLabelArticleRelation{" +
        "id=" + id +
        ", labelId=" + labelId +
        ", articleId=" + articleId +
        "}";
    }
}
